"""Cookes URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path,re_path
from app02 import views
from app02 import student
from app02 import prePages
''' @author:gxj 2018/11 '''
urlpatterns = [
    re_path(r'register/',views.register,name='register'),
    re_path(r'zhuce/',views.zhuce,name='zhuce'),
    re_path(r'login/',views.login,name='login'),
    re_path(r'home/',views.home,name='home'),
    re_path(r'student/',student.student,name='student'),
    re_path(r'addStudent/',student.addStudent,name='addStudent'),
    re_path(r'updateStudent/',student.updateStudent,name='updateStudent'),
    re_path(r'delStudent/',student.delStudent,name='delStudent'),
    re_path(r'sourse/',views.sourse,name='sourse'),
    re_path(r'classes/',views.classes,name='classes'),
    re_path(r'book.html$',prePages.index),
    re_path(r'jingdong.html$',prePages.index02),
    # re_path(r'book1.html$',prePages.index03),
    re_path(r'cbv$/',views.CBV.as_view(),name='cbv'),


]
